<?php
/**
 * Created by PhpStorm.
 * User: fuyu
 * Date: 2018/6/22
 * Time: 上午11:02
 */

namespace App\Models;


class ProductOrderSource extends BaseModel
{
    public $table = 'product_order_source';

    public $fillable = [
        'product',
        'order_source',
        'source_name',
        'source_code',
        'source_quantity'
    ];

    public function productObject()
    {
        return $this->hasOne('App\Models\Product','id','product');
    }

    public function orderSourceObject()
    {
        return $this->hasOne('App\Models\OrderSource','id','order_source');
    }

}